package org.example.traing.service.Impl;

import org.example.traing.entity.Service;
import org.example.traing.persistence.ServiceMapper;
import org.example.traing.service.ServiceService;

import java.util.List;


@org.springframework.stereotype.Service("serviceService")
public class ServiceServiceImpl implements ServiceService {

    @org.springframework.beans.factory.annotation.Autowired
    ServiceMapper serviceMapper;

    public void updateService(String serviceId,String type){
        serviceMapper.updateService(serviceId,type);
    }


    public void insertService(String uid,String type){
        serviceMapper.insertService(uid,type);
    }


    public   void deleteService(int serviceId){
            serviceMapper.deleteService(serviceId);
    }

    public List<Service> getService(String uid){
        return serviceMapper.getService(uid);
    }


    public  Service getServiceByServiceId(int serviceId){
        return serviceMapper.getServiceByServiceId(serviceId);
    }




}

